package com.chapala.interviewquestions;

import java.math.BigDecimal;

public class Change {
public static void main(String args[]) {
System.out.println(2.00 - 1.10);
BigDecimal payment = new BigDecimal(2.00);
BigDecimal cost = new BigDecimal(1.10);
System.out.println(payment.subtract(cost));


 payment = new BigDecimal(2.00);
 cost = new BigDecimal(1.10);
System.out.println(payment.subtract(cost));
 payment = new BigDecimal(2.00);
 cost = new BigDecimal(1.10);
System.out.println(payment.subtract(cost));
 payment = new BigDecimal("2.00");
 cost = new BigDecimal("1.10");
System.out.println(payment.subtract(cost));
}
}
